home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / multitasking / monitors / top / proto / top_protos.h
C/C++ Source or Header  |  2000-03-05  |  2KB  |  133 lines

  1. /* Prototypes for functions defined in
  2. top.c
  3.  */
  4.  
  5. void __regargs __chkabort(void);
  6.  
  7. extern LIBRARY * TimerBase;
  8.  
  9. extern int max_lines;
  10.  
  11. extern TOP tlist_a[100];
  12.  
  13. extern TOP tlist_b[100];
  14.  
  15. extern TOP * t_cur;
  16.  
  17. extern TOP * t_prev;
  18.  
  19. extern TASK * task_list[100];
  20.  
  21. extern TASK * this_task;
  22.  
  23. extern TASK * t_ptr;
  24.  
  25. extern int last_sort_count;
  26.  
  27. extern int this_sort_count;
  28.  
  29. extern int sort_flag;
  30.  
  31. extern int t_offs;
  32.  
  33. extern ULONG delta;
  34.  
  35. extern int task_count;
  36.  
  37. extern int task_count_new;
  38.  
  39. extern int task_pri;
  40.  
  41. extern ECLOCKVAL * ecv;
  42.  
  43. extern int not_found;
  44.  
  45. extern int eclock;
  46.  
  47. extern char title[80];
  48.  
  49. extern BOOL g_switch;
  50.  
  51. extern int sample_time;
  52.  
  53. extern ULONG e_ticks;
  54.  
  55. extern ULONG e_ticks_temp;
  56.  
  57. extern ULONG e_ticks_then;
  58.  
  59. extern SCREEN scr;
  60.  
  61. extern NEWWINDOW nw;
  62.  
  63. extern LIBRARY * IntuitionBase;
  64.  
  65. extern WINDOW * win;
  66.  
  67. extern IOSTDREQ * Con_writeReq;
  68.  
  69. extern MSGPORT * Con_writePort;
  70.  
  71. extern IOSTDREQ * Con_readReq;
  72.  
  73. extern MSGPORT * Con_readPort;
  74.  
  75. extern BOOL OpenedConsole;
  76.  
  77. extern INTUIMESSAGE * winmsg;
  78.  
  79. extern ULONG signals;
  80.  
  81. extern UBYTE och;
  82.  
  83. extern BYTE oc_error;
  84.  
  85. void __asm __interrupt __saveds myswitch(void);
  86.  
  87. void main(int , char ** );
  88.  
  89. char * get_state(TOP * , TASK * );
  90.  
  91. int build_tsk_array(TOP * );
  92.  
  93. void build_tsk_item(TOP * , TASK * , int );
  94.  
  95. void copy_task_name(TOP * , char * );
  96.  
  97. char * get_proc_name(PROCESS * );
  98.  
  99. BOOL my_qsort(void * , int , int , int (* )());
  100.  
  101. int my_cmp(void * , void * );
  102.  
  103. void open_timer(void);
  104.  
  105. ULONG start_timer(int );
  106.  
  107. void deleteTimer(TIMEREQUEST * );
  108.  
  109. void open_console(void);
  110.  
  111. void con_cleanup(void);
  112.  
  113. BYTE openConsole(IOSTDREQ * , IOSTDREQ * , WINDOW * );
  114.  
  115. void closeConsole(IOSTDREQ * );
  116.  
  117. void conPuts(IOSTDREQ * , UBYTE * );
  118.  
  119. void conRead(IOSTDREQ * , UBYTE * , int );
  120.  
  121. int con_win_event(void);
  122.  
  123. void get_win_size(int * , int * );
  124.  
  125. void move_cursor(int , int );
  126.  
  127. void fatal_err(char * );
  128.  
  129. void hexit(char * );
  130.  
  131. void usage(void);
  132.  
  133.